<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript">
        $("[name='entityProterty']").click(function(){
            var $this = $(this);
            window.open($this.attr("url"),'实体属性','width=1024,height=768');
        });

    </script>
</head>
<body>

<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            构建项目 <small>数据库表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li class="btn-group">
                <button type="button" class="btn blue dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">
							<span>
								Actions
							</span>
                    <i class="fa fa-angle-down"></i>
                </button>
                <ul class="dropdown-menu pull-right" role="menu">
                    <li>
                        <a href="#">
                            Action
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            Another action
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            Something else here
                        </a>
                    </li>
                    <li class="divider">
                    </li>
                    <li>
                        <a href="#">
                            Separated link
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <i class="fa fa-home"></i>
                <a href="index.html">
                    主页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    构建项目
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    数据表
                </a>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>


<div class="portlet-body">
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-advance table-hover">
            <thead>
            <tr>
                                    <th>主键</th>
                                    <th>类型</th>
                                    <th>URL</th>
                                    <th>上级权限编号</th>
                                    <th>操作类型</th>
                                    <th>生成时间</th>
                                    <th>更新时间</th>
                                    <th>操作</th>
                            </tr>
            </thead>
            <tbody>

            <tr  th:each="vos : ${list}">
                  <td class="highlight">
                        <div class="success">
                        </div>
                        <a href="#"  th:text="${vos.id}">
                            RedBull
                        </a>
                    </td>

                
                    <td  th:text="${vos.type}"> </td>
                

                                            
                
                    <td  th:text="${vos.url}"> </td>
                

                                            
                
                    <td  th:text="${vos.parentId}"> </td>
                

                                            
                
                    <td  th:text="${vos.operationType}"> </td>
                

                                            
                
                    <td  th:text="${vos.createDate}"> </td>
                

                                            
                
                    <td  th:text="${vos.updateDate}"> </td>


                <td>
                        <a name="editEntity" href="#basic" class="btn default btn-xs purple"  data-toggle="modal" th:attr="url='/Authority/toEdit?id=${vos.id}'">
                            <i class="fa fa-edit"></i> Edit
                        </a>
                        <a name="removeEntity" href="#" class="btn btn-sm btn-xs  red"  data-toggle="modal" th:attr="url='/Authority/remove?id=${vos.id}'">
                            <i class="fa fa-edit"></i> remove
                        </a>
                    </td>
                                        </tr>
            </tbody>
        </table>
    </div>
</div>


<div class="modal fade  modal-scroll" id="basic" tabindex="-1" role="basic" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">编辑</h4>
            </div>
            <div class="modal-body" style="height: 288px">
                <div class="portlet-body form">
                    <!-- BEGIN FORM-->
                    <form action="#" class="horizontal-form">
                        <div class="form-body">

                                 <div class="form-group">
                                    <label class="control-label col-md-3">主键:</label>
                                    <div class="col-md-9">
                                        <input type="text" placeholder="主键" name="id"  class="form-control"/>
                                    </div>
                                </div>
                                                            <div class="form-group">
                                    <label class="control-label col-md-3">类型:</label>
                                    <div class="col-md-9">
                                        <input type="text" placeholder="类型" name="type" class="form-control"/>
                                    </div>
                                </div>
                                                            <div class="form-group">
                                    <label class="control-label col-md-3">URL:</label>
                                    <div class="col-md-9">
                                        <input type="text" placeholder="URL" name="url" class="form-control"/>
                                    </div>
                                </div>
                                                            <div class="form-group">
                                    <label class="control-label col-md-3">上级权限编号:</label>
                                    <div class="col-md-9">
                                        <input type="text" placeholder="上级权限编号" name="parentId" class="form-control"/>
                                    </div>
                                </div>
                                                            <div class="form-group">
                                    <label class="control-label col-md-3">操作类型:</label>
                                    <div class="col-md-9">
                                        <input type="text" placeholder="操作类型" name="operationType" class="form-control"/>
                                    </div>
                                </div>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn default" data-dismiss="modal">Close</button>
                <button type="button" class="btn blue">Save changes</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

</body>
</html>